package com.syx.migration.web;

import com.baomidou.dynamic.datasource.annotation.DSTransactional;
import com.syx.migration.service.UserModuleService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2024/6/5 14:05
 * @description: TODO
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/mgn/user")
public class UserModuleController {

    private final UserModuleService userModuleService;

    @DSTransactional
    @GetMapping("/all")
    public void all(){
//        userModuleService.migrationDept();
//        userModuleService.migrationReaderTypeRule();
//        userModuleService.migrationReader();
    }

    @GetMapping("/mDept")
    public void migrationDept(){
//        userModuleService.migrationDept();
    }

    @GetMapping("/mRtr")
    public void migrationReaderTypeRule(){
//        userModuleService.migrationReaderTypeRule();
    }

    @GetMapping("/mReader")
    public void migrationReader(){
//        userModuleService.migrationReader();
    }

    @GetMapping("/supp")
    public void suppReaderDept(){
//        userModuleService.suppReaderDept();
    }

    @GetMapping("/clearBorrowCard")
    public void clearRepetitionBorrowCard(String tenantId){
        userModuleService.clearRepetitionBorrowCard(tenantId);
    }
}
